package com.ai.sb.mobile;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Date:  2018/6/26
 * Time:  11:46
 * Email: siy@hmgsoft.com
 * Created by siy
 */
public class Offer {
    private String action;
    private String bizCode;
    private String effTime;
    private String effectType;
    private String expTime;
    private String isMain;
    private String isPackage;
    private String offerId;
    private String spCode;
    private String upOfferId;

    private List<OfferAttr> offerAttrList;
    public Offer(String offerId){
        this.offerId = offerId;
        this.action = "0";
        this.effectType = "Type_Default";
        this.isMain = "0";
        this.isPackage = "0";
        this.bizCode = "";
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        String s = sdf.format(date);
        this.effTime = s;
        this.expTime = "";
        this.spCode = "";
        this.upOfferId = "";
    }

    public List<OfferAttr> getOfferAttrList() {
        return offerAttrList;
    }

    public void setOfferAttrList(List<OfferAttr> offerAttrList) {
        this.offerAttrList = offerAttrList;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public String getEffTime() {
        return effTime;
    }

    public void setEffTime(String effTime) {
        this.effTime = effTime;
    }

    public String getEffectType() {
        return effectType;
    }

    public void setEffectType(String effectType) {
        this.effectType = effectType;
    }

    public String getExpTime() {
        return expTime;
    }

    public void setExpTime(String expTime) {
        this.expTime = expTime;
    }

    public String getIsMain() {
        return isMain;
    }

    public void setIsMain(String isMain) {
        this.isMain = isMain;
    }

    public String getIsPackage() {
        return isPackage;
    }

    public void setIsPackage(String isPackage) {
        this.isPackage = isPackage;
    }

    public String getOfferId() {
        return offerId;
    }

    public void setOfferId(String offerId) {
        this.offerId = offerId;
    }

    public String getSpCode() {
        return spCode;
    }

    public void setSpCode(String spCode) {
        this.spCode = spCode;
    }

    public String getUpOfferId() {
        return upOfferId;
    }

    public void setUpOfferId(String upOfferId) {
        this.upOfferId = upOfferId;
    }

    @Override
    public String toString() {
        return "Offer{" +
                "action='" + action + '\'' +
                ", bizCode='" + bizCode + '\'' +
                ", effTime='" + effTime + '\'' +
                ", effectType='" + effectType + '\'' +
                ", expTime='" + expTime + '\'' +
                ", isMain='" + isMain + '\'' +
                ", isPackage='" + isPackage + '\'' +
                ", offerId='" + offerId + '\'' +
                ", spCode='" + spCode + '\'' +
                ", upOfferId='" + upOfferId + '\'' +
                ", offerAttrList=" + offerAttrList +
                '}';
    }
}
